//
//  NSObject+WDGetDate.m
//  东城教育新闻实战
//
//  Created by 王笛 on 16/10/8.
//  Copyright © 2016年 diwang. All rights reserved.
//

#import "NSObject+WDGetDate.h"

@implementation NSObject (WDGetDate)

/** 当前时间 */
-(NSString *)currentTime:(NSDate *)currentDate
{
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    NSString *destDateString = [dateFormatter stringFromDate:currentDate];
    
    return destDateString;
}

@end
